import Mock from 'mockjs'
import homeApi from './mockServeData/home'
import userApi from './mockServeData/user'

// 定义mock请求拦截
Mock.mock('/home/getData', homeApi.getStatisticalData)
Mock.mock('/user/edit', 'post', userApi.updateUser)
Mock.mock('/user/add', 'post', userApi.createUser)

Mock.mock('/user/getUser', 'get', userApi.getUserList)
Mock.mock('/user/del', 'post', userApi.deleteUser)
